package com.springcloud.zuul.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springcloud.zuul.entity.SysProductMenuEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @program: springcloud-zuul
 * @description: 产品与权限菜单关联表
 * @author: zhlu
 * @create: 2020-01-02 11:45
 * @Introduction(说明背景故事)
 **/
@Mapper
public interface SysProductMenuDao extends BaseMapper<SysProductMenuEntity> {

    /**
     * Description:根据产品编码，批量删除产品与权限菜单关联表数据
     * @author zhlu
     * @date 2020/1/2 12:02 下午
     * @param
     * @return int
     */
    int deleteBatch(List<String> productIds);

    /**
     * Description:根据产品编码获取产品权限功能列表
     * @author zhlu
     * @date 2020/1/6 10:13 上午
     * @param productId
     * @return java.util.List<java.lang.String>
     */
    List<String>queryMenuIdList(String productId);

}
